From 9f408ee4c2158088adb0c048e26f4ae6ddec3eaa Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 16 May 2016 00:26:24 +0300 Subject: [PATCH] fix more test with insane regexes --- tests/test_cargo_compile.rs | 8 ++++---- tests/test_cargo_compile_custom_build.rs | 2 +- tests/test_cargo_cross_compile.rs | 2 +- tests/test_cargo_rustc.rs | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/test_cargo_compile.rs b/tests/test_cargo_compile.rs index 2f9c3834f..dc3877be5 100644 --- a/tests/test_cargo_compile.rs +++ b/tests/test_cargo_compile.rs @@ -996,7 +996,7 @@ test!(lto_build { "#) .file("src/main.rs", "fn main() {}"); assert_that(p.cargo_process("build").arg("-v").arg("--release"), - execs().with_status(0).with_stdout(&format!("\ + execs().with_status(0).with_stderr(&format!("\ [COMPILING] test v0.0.0 ({url}) [RUNNING] `rustc src[..]main.rs --crate-name test --crate-type bin \ -C opt-level=3 \ @@ -1023,7 +1023,7 @@ test!(verbose_build { "#) .file("src/lib.rs", ""); assert_that(p.cargo_process("build").arg("-v"), - execs().with_status(0).with_stdout(&format!("\ + execs().with_status(0).with_stderr(&format!("\ [COMPILING] test v0.0.0 ({url}) [RUNNING] `rustc src[..]lib.rs --crate-name test --crate-type lib -g \ --out-dir {dir}[..]target[..]debug \ @@ -1048,7 +1048,7 @@ test!(verbose_release_build { "#) .file("src/lib.rs", ""); assert_that(p.cargo_process("build").arg("-v").arg("--release"), - execs().with_status(0).with_stdout(&format!("\ + execs().with_status(0).with_stderr(&format!("\ [COMPILING] test v0.0.0 ({url}) [RUNNING] `rustc src[..]lib.rs --crate-name test --crate-type lib \ -C opt-level=3 \ @@ -1089,7 +1089,7 @@ test!(verbose_release_build_deps { "#) .file("foo/src/lib.rs", ""); assert_that(p.cargo_process("build").arg("-v").arg("--release"), - execs().with_status(0).with_stdout(&format!("\ + execs().with_status(0).with_stderr(&format!("\ [COMPILING] foo v0.0.0 ({url}/foo) [RUNNING] `rustc foo[..]src[..]lib.rs --crate-name foo \ --crate-type dylib --crate-type rlib -C prefer-dynamic \ diff --git a/tests/test_cargo_compile_custom_build.rs b/tests/test_cargo_compile_custom_build.rs index 694f99240..aa76d2911 100644 --- a/tests/test_cargo_compile_custom_build.rs +++ b/tests/test_cargo_compile_custom_build.rs @@ -174,7 +174,7 @@ test!(custom_build_script_rustc_flags { // TODO: TEST FAILS BECAUSE OF WRONG STDOUT (but otherwise, the build works) assert_that(p.cargo_process("build").arg("--verbose"), execs().with_status(101) - .with_stdout(&format!("\ + .with_stderr(&format!("\ [COMPILING] bar v0.5.0 ({url}) [RUNNING] `rustc {dir}{sep}src{sep}lib.rs --crate-name test --crate-type lib -g \ -C metadata=[..] \ diff --git a/tests/test_cargo_cross_compile.rs b/tests/test_cargo_cross_compile.rs index 201f58b86..550107c5a 100644 --- a/tests/test_cargo_cross_compile.rs +++ b/tests/test_cargo_cross_compile.rs @@ -347,7 +347,7 @@ test!(linker_and_ar { assert_that(p.cargo_process("build").arg("--target").arg(&target) .arg("-v"), execs().with_status(101) - .with_stdout(&format!("\ + .with_stderr(&format!("\ [COMPILING] foo v0.5.0 ({url}) [RUNNING] `rustc src[..]foo.rs --crate-name foo --crate-type bin -g \ --out-dir {dir}[..]target[..]{target}[..]debug \ diff --git a/tests/test_cargo_rustc.rs b/tests/test_cargo_rustc.rs index d71ac6d79..7301d6a52 100644 --- a/tests/test_cargo_rustc.rs +++ b/tests/test_cargo_rustc.rs @@ -84,7 +84,7 @@ test!(build_main_and_allow_unstable_options { .arg("--").arg("-Z").arg("unstable-options"), execs() .with_status(0) - .with_stdout(&format!("\ + .with_stderr(&format!("\ [COMPILING] {name} v{version} ({url}) [RUNNING] `rustc src{sep}lib.rs --crate-name {name} --crate-type lib -g \ --out-dir {dir}{sep}target{sep}debug \ @@ -146,7 +146,7 @@ test!(build_with_args_to_one_of_multiple_binaries { .arg("--").arg("-Z").arg("unstable-options"), execs() .with_status(0) - .with_stdout(format!("\ + .with_stderr(format!("\ [COMPILING] foo v0.0.1 ({url}) [RUNNING] `rustc src{sep}lib.rs --crate-name foo --crate-type lib -g \ --out-dir {dir}{sep}target{sep}debug [..]` @@ -199,7 +199,7 @@ test!(build_with_args_to_one_of_multiple_tests { .arg("--").arg("-Z").arg("unstable-options"), execs() .with_status(0) - .with_stdout(format!("\ + .with_stderr(format!("\ [COMPILING] foo v0.0.1 ({url}) [RUNNING] `rustc src{sep}lib.rs --crate-name foo --crate-type lib -g \ --out-dir {dir}{sep}target{sep}debug [..]` -- 2.30.2